package com.zy.service.impl;

import com.zy.dao.GetOrderDao;
import com.zy.dao.impl.GetOrderDaoImpl;
import com.zy.entity.Order;
import com.zy.service.GetOrderService;
import java.util.List;

public class GetOrderServiceImpl implements GetOrderService {
    private GetOrderDao getOrderDao = new GetOrderDaoImpl();

    @Override
    public List<Order> getOrders(int userId) {
        return getOrderDao.fetchOrders(userId);
    }
} 